package src;

public class Result {
	static int tp = 0, fp = 0, tn = 0, fn = 0;
	static double mrrScore = 0;
	int querySize = 0;
	
	public void update(int tp1, int fp1, int tn1, int fn1){
		tp = tp + tp1;
		fp = fp + fp1;
		tn = tn + tn1;
		fn = fn + fn1;
	}
	
	
	public void update(double MRR){
		querySize ++;
		mrrScore = mrrScore + MRR;
		System.out.println("MRR Score :: " + mrrScore);
	}
	
	public void printStats(){
		System.out.println("tp : "+ tp +" fp : "
				+ fp +" tn : " + tn + " fn : "+ fn);		
	}
	
	public void printStats2(){
		System.out.println("MRR Score :: " + mrrScore);
		System.out.println("querySize :: "+querySize);
	}
}
